﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace BSCMFF.Web.UserControls.Details
{
    public partial class TaskDetails : System.Web.UI.UserControl
    {
        public String Name
        {
            get
            {
                return RadTextBoxName.Text;
            }
        }

        public String Description
        {
            get
            {
                return RadTextBoxDescription.Text;
            }
        }

        public int Priority
        {
            get
            {
                double? p = RadNumericTextBoxPriority.Value;
                return p == null ? 0 : (int)p ;
            }
        }

        //public String VerbalEvaluation
        //{
        //    get
        //    {
        //        return RadTextBoxVerbalEvaluation.Text;
        //    }
        //}

        public int? Weight
        {
            get
            {
                return (int?)RadNumericTextBoxWeight.Value;
            }
        }

        public DateTime? Assigned
        {
            get
            {
                return RadDatePickerAssigned.SelectedDate;
            }
        }

        public DateTime? Expected
        {
            get
            {
                return RadDatePickerEndExpected.SelectedDate;
            }
        }

        public DateTime? Completed
        {
            get
            {
                return RadDatePickerCompleted.SelectedDate;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            //RadDatePickerAssigned.SelectedDate = DateTime.Now;
        }

        
    }
}